import Vue from 'vue'
import App from './App'
// import i18n from './common/js/i18n.js'

// vuex
import store from './store'
Vue.prototype.$store = store

import {router,RouterMount} from './router'  //路径换成自己的
Vue.use(router)

// import VueI18n from 'vue-i18n'
// import zh from '@/common/js/locales/zh-CN.js'
// import en from '@/common/js/locales/en.js'
// Vue.use(VueI18n)
// const i18n = new VueI18n({
//   locale: 'zh', // 默认语言为中文
//   messages: {
//     zh,
//     en
//   }
// })

// Vue.prototype.$i18n = i18n

// 引入全局uView
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)

import commonMixin from '@/common/mixin/common'
Vue.mixin(commonMixin)

import $http from '@/common/http/http'
Vue.prototype.$http = $http

import scrollYBox from '@/components/scrollYBox/scrollYBox.vue'
Vue.component('scrollYBox', scrollYBox);


Vue.config.productionTip = false

App.mpType = 'app'
const app = new Vue({
	// i18n,
	router,
    store,
    ...App
})

app.$mount()
